package interview.adapter;/*

 */

/**
 * @ClassName ClassAdapterTest
 * @Author Final
 * @Project DataStructures
 */
public class ClassAdapterTest {
//    public static void main(String[] args)
//    {
//        System.out.println("类适配器模式测试：");
//        Target target = new ClassAdapter();
//        target.request();
//    }

    public static void main(String[] args)
    {
        System.out.println("对象适配器模式测试：");
        Adaptee adaptee = new Adaptee();
        Target target = new ObjectAdapter(adaptee);
        target.request();
    }
}
